#include<stdio.h>
#include<string.h>
int main()
{
	FILE* fp=fopen("mywrite","r");
	if(!fp)
  {
    printf("fopen error");
  }
  char buffer[64];
  const char* msg="hello lxm\n";
  while(1)
  {
   ssize_t s = fread(buffer,1,strlen(msg),fp);
    if(s>0)
    {
      buffer[s]=0;
      printf("%s",buffer);
    }
    if(feof(fp))
      break;
  }
  fclose(fp);
	return 0;
}

